package com.ns.scs.msg.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ns.scs.msg.entry.MsgUser;
import com.ns.scs.msg.mapper.MsgUserMapper;
import com.ns.scs.my.vo.MyMsgVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 参数业务实现
 *
 * @author lw
 * @since 2024/09/23
 */
@Service
@RequiredArgsConstructor
@Slf4j
public class MsgUserServiceImpl extends ServiceImpl<MsgUserMapper, MsgUser> implements IMsgUserService {
    private final MsgUserMapper mapper;

    @Override
    public void removeByMsgId(Long id) {
        mapper.removeByMsgId(id);
    }

    @Override
    public List<Long> getByMsgId(Long id) {
        return mapper.getByMsgId(id);
    }

    @Override
    public List<MyMsgVO> getMsgByUid(Long uid, Long sid, Integer status) {
        return mapper.getMsgByUid(uid, sid, status);
    }

    @Override
    public int updateByIds(List<Long> ids) {
        return mapper.updateByIds(ids);
    }
}
